<?php
namespace Home\Controller;
use Think\Controller;
class RollingController extends MerchantController {
	
public function _initialize(){
	parent::_initialize();	
 	$this->model="rolling"; //表名
 	$this->key="rl_id";//排序键		 
 	$this->title_index=L("rolling");//选项卡标题	
}

public function index(){
	$mist_arr=array("rl_date"=>I("rl_date"));
	$accute_arr=array("rl_oid"=>I("rl_oid"),"rl_status"=>I("rl_status"));
	$cookie_arr=array();	
	$con=searchCon($mist_arr,$accute_arr,$cookie_arr);
	$con['rl_mid']=$this->merchant_info['mh_id'];	
	$total=M($this->model)->where($con)->sum("rl_amount");
	$this->assign("total_amount",$total);
	parent::home($con);
}
	

	
}

